package net.zhnb.service.impl;

import javax.annotation.Resource;

import net.zhnb.bean.Global;
import net.zhnb.bean.GlobalKey;
import net.zhnb.dao.GlobalDao;
import net.zhnb.service.GlobalService;

public class GlobalServiceImpl implements GlobalService {

	@Resource
	private GlobalDao globalDao;

	@Override
	public boolean insert(Global global) throws Exception {
		return globalDao.insert(global);
	}
	
	@Override
	public Global findByKey(GlobalKey key) throws Exception {
		return globalDao.findByKey(key);
	}

	@Override
	public boolean update(Global global) throws Exception {
		return globalDao.update(global);
	}
	
}
